package cn.gailvlun.gll.net.cross;

import cn.gailvlun.gll.util.ProfileUtil;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

public class CrossRoomInfo extends RealmObject {
    @PrimaryKey
    private int id;
    private int beforeOpenTime;
    private int riddleTime;
    private int riddleCountDownTime;
    private int riddleAnswerTime;
    private int punishTime;
    private int punishCountDownTime;
    private int halfTime;
    private int commentingTime;
    private CrossQuestionInfo first;
    private CrossQuestionInfo second;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBeforeOpenTime() {
        return beforeOpenTime;
    }

    public void setBeforeOpenTime(int beforeOpenTime) {
        this.beforeOpenTime = beforeOpenTime;
    }

    public int getRiddleTime() {
        return riddleTime;
    }

    public void setRiddleTime(int riddleTime) {
        this.riddleTime = riddleTime;
    }

    public int getRiddleCountDownTime() {
        return riddleCountDownTime;
    }

    public void setRiddleCountDownTime(int riddleCountDownTime) {
        this.riddleCountDownTime = riddleCountDownTime;
    }

    public int getRiddleAnswerTime() {
        return riddleAnswerTime;
    }

    public void setRiddleAnswerTime(int riddleAnswerTime) {
        this.riddleAnswerTime = riddleAnswerTime;
    }

    public int getPunishTime() {
        return punishTime;
    }

    public void setPunishTime(int punishTime) {
        this.punishTime = punishTime;
    }

    public int getPunishCountDownTime() {
        return punishCountDownTime;
    }

    public void setPunishCountDownTime(int punishCountDownTime) {
        this.punishCountDownTime = punishCountDownTime;
    }

    public int getHalfTime() {
        return halfTime;
    }

    public void setHalfTime(int halfTime) {
        this.halfTime = halfTime;
    }

    public int getCommentingTime() {
        return commentingTime;
    }

    public void setCommentingTime(int commentingTime) {
        this.commentingTime = commentingTime;
    }

    public CrossQuestionInfo getFirst() {
        return first;
    }

    public void setFirst(CrossQuestionInfo first) {
        this.first = first;
    }

    public CrossQuestionInfo getSecond() {
        return second;
    }

    public void setSecond(CrossQuestionInfo second) {
        this.second = second;
    }

    public boolean isFirst() {
        return first.getId() == ProfileUtil.getUserId();
    }
}
